﻿//自动义双击方法
function CustomDbClick() {
}
//自定义新增方法
var fnCustomAdd = function () {
    
}
//自定义修改方法
var fnCustomEdit = function () {
    window.parent.parent.$("#tabs").tabs('close', '修改客户信息');
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    var vid = record.getData(const_entityID);
    var pagetitle = "修改客户信息";
    parent.parent.addTabs(pagetitle, '../Crm/Customer/ModifyCustomerOld.aspx?r=' + Math.random() + '&flag=1&type=stop&entity=CrmCustomerOld&id=' + vid + '&title=' + encodeURI(pagetitle));
    parent.parent.NeedRefreshPage = this;
}
//自定义删除方法
var fnCustomDeleteData = function () {
    YAHOO.example.container.dialog3.hide();
}